package com.fs.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fs.pojo.WhWarehouse;
import com.fs.pojo.Wh_inventory;
import com.fs.vo.Condition;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.List;

/**
 * @author hyy
 * @version 1.0
 * @description: 仓库服务层接口管理
 * @date 2024/10/11 15:13
 */
public interface WareHouseService {
    /**
     * 添加仓库
     * @param whWarehouse 仓库模型
     * @return
     */
    Integer addWareHouse(WhWarehouse whWarehouse);

    /**
     * 删除仓库
     * @param id 仓库主键id
     * @return
     */
    Integer delWareHouse(Integer id);
    /**
     * 修改仓库
     * @param whWarehouse 仓库模型
     * @return
     */
    Integer updateWareHouse(WhWarehouse whWarehouse);

    /**
     *  分页查询
     * @param pageNum
     * @param pageSize
     * @param whWarehouse
     * @return
     */
    Page<WhWarehouse> queryWareHouse(Integer pageNum, Integer pageSize,WhWarehouse whWarehouse);

    /**
     * 主键id查询
     * @param id id主键
     * @return
     */
    WhWarehouse queryWareHouseById(Integer id);

    /**
     * 查询所有仓库信息
     * @return
     */
    List<WhWarehouse> queryAll();

    /**
     * 根据商品Id获取仓库信息
     * @param id
     * @return
     */
    List<Wh_inventory> queryByProductId(Integer id);

}
